package com.ruoyi.pcwl.domain.enums;

//使用enum关键字枚举类
public enum WechatMenuTypeEnum {
    //1.提供当前枚举类的对象，多个对象之间用","隔开，末尾对象";"结束
    CLICK(1,"click"),
    SUBBUTTON(2, "subButton"),
    PCWLSHOPENV(3, "PcwlShopEnv/"),
    PCWLSHOPDETAILS(4,"PcwlShopDetails/"),
    SCENICSPOT(5, "ScenicSpot/"),
    HOTEL(6, "Hotel/");

    private final Integer categoryId;
    private final String categoryName;

    //2.私有化类的构造器,并给对象属性赋值

    private WechatMenuTypeEnum(Integer categoryId, String categoryName){
        this.categoryId = categoryId;
        this.categoryName = categoryName;
    }

    //4.其他诉求1：获取枚举类对象的属性
    public Integer getCategoryId() {
        return categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }
}
